import { BrowserModule } from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import {ServiceLogicService} from './service/service-logic.service';
import {ApiServiceService} from './service/api-service.service';
import {HttpModule} from '@angular/http';
import { LoginComponent } from './login/login.component';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
// import { RouterComponent } from './generalStaff/router/router.component';
import { PunchInComponent } from './generalStaff/punch-in/punch-in.component';
import { LeaveApplicationComponent } from './generalStaff/leave-application/leave-application.component';
import { OutApplicationComponent } from './generalStaff/out-application/out-application.component';
import { ValidLeaveApplicationComponent } from './generalStaff/valid-leave-application/valid-leave-application.component';
import { OthersConditionComponent } from './generalStaff/others-condition/others-condition.component';
// import {AccordionModule} from 'primeng/primeng';
// import {MenuItem} from 'primeng/primeng';
// import { PrimengComponent } from './primeng/primeng.component';
// import {PrimengComponent} from './primeng/primeng.component';
import {ButtonModule} from 'primeng/button';
import {TableModule} from 'primeng/table';
import {DialogModule} from 'primeng/dialog';
import { ManageComponent } from './administrator/manage/manage.component';
import { ManagerComponent } from './deptManager/manager/manager.component';
import { GeneralstaffComponent } from './generalStaff/generalstaff/generalstaff.component';
import { ExecutivestaffComponent } from './executiveStaff/executivestaff/executivestaff.component';
import { FinancestaffComponent } from './financeStaff/financestaff/financestaff.component';
import { ThisDepartmentComponent } from './deptManager/this-department/this-department.component';
import { OtherDepartmentComponent } from './deptManager/other-department/other-department.component';
import { GeneralmanagerComponent } from './generalManager/generalmanager/generalmanager.component';
import {ViceGeneralManagerComponent} from './viceGeneralManager/vice-general-manager/vice-general-manager.component';
import { ApprovalLeaveComponent } from './viceGeneralManager/approval-leave/approval-leave.component';
import { ApprovalOutingComponent } from './viceGeneralManager/approval-outing/approval-outing.component';
import { GeneralApprovalOutingComponent } from './generalManager/general-approval-outing/general-approval-outing.component';
import { GeneralApprovalLeaveComponent } from './generalManager/general-approval-leave/general-approval-leave.component';
import { GeneralAllEmployeeComponent } from './generalManager/general-all-employee/general-all-employee.component';
import { AllEmployeeComponent } from './viceGeneralManager/all-employee/all-employee.component';
import { AbsenceDayRecordComponent } from './executiveStaff/absence-day-record/absence-day-record.component';
import { SalaryStatisticComponent } from './financeStaff/salary-statistic/salary-statistic.component';
// import { ViceGeneralManagerComponent } from './vice-general-manager/vice-general-manager.component';
// import {GeneralstaffComponent} from './generalStaff/generalstaff/generalstaff.component';

@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    // RouterComponent,
    PunchInComponent,
    LeaveApplicationComponent,
    OutApplicationComponent,
    ValidLeaveApplicationComponent,
    OthersConditionComponent,
    ManageComponent,
    ManagerComponent,
    GeneralstaffComponent,
    ExecutivestaffComponent,
    FinancestaffComponent,
    ThisDepartmentComponent,
    OtherDepartmentComponent,
    GeneralmanagerComponent,
    ViceGeneralManagerComponent,
    ApprovalLeaveComponent,
    ApprovalOutingComponent,
    GeneralApprovalOutingComponent,
    GeneralApprovalLeaveComponent,
    GeneralAllEmployeeComponent,
    AllEmployeeComponent,
    AbsenceDayRecordComponent,
    SalaryStatisticComponent,
   //  ViceGeneralManagerComponent,
    // PrimengComponent,
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    TableModule,
    DialogModule,
    ButtonModule,
    // AccordionModule,
    // PrimengComponent,
    FormsModule,
    ReactiveFormsModule,
    AppRoutingModule,
    HttpModule
  ],
  providers: [
    ServiceLogicService,
    ApiServiceService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
